package com.crm.CLdriving.dto.req;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("学员信息录入请求参数")
public class StudentInsertReqDto {
	
	private int id;
	
	@ApiModelProperty("学员姓名")
	@NotBlank(message="请输入姓名")
	private String name;
	
	@ApiModelProperty("学员性别")
	@NotBlank(message="请选择性别")
	private String sex;
	
	@ApiModelProperty("身份证号")
	@Pattern(regexp = "^(\\d{18,18}|\\d{15,15}|(\\d{17,17}[x|X]))$", message = "身份证格式错误")
	@NotBlank(message="身份证号不能为空")
	private String identity;
	
	@ApiModelProperty("电话")
	@Pattern(regexp="^[1][3,4,5,7,8][0-9]{9}$",message="电话号码错误")
	@NotBlank(message="电话号码不能为空")
	private String phone;
	
	@ApiModelProperty("报名日期")
	@NotBlank(message="报名日期不能为空")
	//@JsonFormat(timezone = "GMT+8",pattern = "yy-MM-dd")
	private String statTime;
	
	@ApiModelProperty("家庭地址")
	@NotBlank(message="家庭住址不能为空")
	private String address;
	
	
	@ApiModelProperty("出生日期")
	@NotBlank(message="出生日期不能为空")
	//@JsonFormat(timezone = "GMT+8",pattern = "yy-MM-dd")
	private String birthDate;
	
			
	@ApiModelProperty("学员教练姓名")
	private String coach;
	
	@ApiModelProperty("qq号")
	private String qq;
	
	@ApiModelProperty("申请驾照类型")
	private String license;
	
	@ApiModelProperty("国籍")
	private String nationality;

}
